#######################
function Get-Columns
{
    param($ConnectionString,$dbmsType,$connectionName)

    if ($Script:RSDDSql.$dbmsType.GetColumns)
    { 
        try { Get-OLEDBData -ConnectionString $ConnectionString -sql $Script:RSDDSql.$dbmsType.GetColumns }
        catch {
                $ex = $_.Exception
                Write-LogMessage -Source 'Get-Columns' -Message "$($connectionName):$ex.Message"
                Write-Error "Get-Columns $($connectionName):$ex.Message"
                continue
        }
    }

} #Get-Columns
